package cn.edu.scau.cmi.chenruilin.comprehensive;
import cn.edu.scau.cmi.chenruilin.client.*;
import javafx.fxml.FXML;
import javafx.stage.Stage;

public class ComprehensiveController {

    @FXML
    void openExp1() {
    	new InterProgrammingClient().start(new Stage());
    }

    @FXML
    void openExp2() {
    	new SingletonClient().start(new Stage());
    }
    
    


    @FXML
    void openExp3_1() {
    	new SimpleFactoryMethodClient().start(new Stage());
    }

    @FXML
    void openExp3_2() {
    	new FactoryPatternClient().start(new Stage());
    }
    
    @FXML
    void openExp3_3() {
    	new AbstractFactoryClient().start(new Stage());
    }

    
    @FXML
    void openExp4_1() {
    	new ClassAdapterClient().start(new Stage());
    }

    @FXML
    void openExp4_2() {
    	new ObjectAdapterClient().start(new Stage());
    }

    @FXML
    void openExp5_1() {
    	new SafeCompositeFxClient().start(new Stage());
    }

    @FXML
    void openExp5_2() {
    	new ConsistentCompositeFxClient().start(new Stage());
    }


    @FXML
    void openExp6() {
    	new OrmClient().start(new Stage());
    }
    
    @FXML
    void openExp7_1() {
    	new SingletonApplicationContextClient().start(new Stage());
    }

    @FXML
    void openExp7_2() {
    	new SpringHibernateSessionClient().start(new Stage());
    }
    

}

